{% extends 'home/base.html' %}
{% block title %}STOKING{% endblock %}
{% block heading %}STOKING{% endblock %}
{% block body %}
<form method="POST" action="/stock/view_medicine/">{% csrf_token %}
     <ul>
        <li>
            <div class="input-field col s6">
              <input type="search" name="item_not_sure" placeholder="输入药品关键词">
              <button type="submit" class="btn">search</button>
          </div>
        </li>
    </ul>

            <ul class="collapsible popout" data-collapsible="accordion">
              {% for items in post_list %}
              <li>
                <div class="collapsible-header blue-grey">
                  <i class="material-icons">
                    assignment_turned_in
                  </i>
                  产品名称： {{items.item_name}}  生产厂商： {{items.manufacturer}}  产品描述：{{ items.description }}
                </div>
                <div class="collapsible-body">
                  <span>Item name</span> <span class="blue-text text-lighten-1">{{items.item_name}}</span><br>
                  <span>manufacturer</span> <span class="blue-text text-lighten-1">{{items.manufacturer}}</span><br>
                  <span>description</span> <span class="blue-text text-lighten-1">{{items.description}}</span><br>
                  <span>cost_price</span> <span class="blue-text text-lighten-1">{{items.cost_price}}</span><br>
                  <span>sell_price</span> <span class="blue-text text-lighten-1">{{items.sell_price}}</span><br>
                  <span class="right-align"><a href="/stock/change_medicine/{{items.pk}}" class="btn-floating btn-large halfway-fab waves-effect waves-light red right-align"><i class="material-icons">mode_edit</i></a></span>
                </div>
              </li>
              {% endfor %}
            </ul>

</form>
{% endblock %}